<!-- addEditRule.html 2018-07-09 21:12:19-->
#@HplusLayout()
#define cssStyle()
#end
#define content()
<div style="padding:10px;height: 100%">
	<form method="post" class="form-horizontal required-validate" action="saveRule" novalidate="novalidate" onsubmit="return validateCallback(this,listDialogAjaxDone)">
		<input type="hidden" name="messageRule.id" value="#(messageRule.id)"/>
		<input type="hidden" name="messageRule.reply_id" value="#(messageRule.reply_id)"/>
				<div class="form-group">
				<label class="col-xs-3 control-label">类型：</label>
				<div class="col-xs-8">
	<select name="messageRule.type" class="form-control required">
		
		#(data("WEIXIN_MESSAGE_RULE_TYPE","option",messageRule.type))
	</select>
				</div>
		</div>
		<div class="form-group">
				<label class="col-xs-3 control-label">值：</label>
				<div class="col-xs-8">
	<input type="text" class="form-control" name="messageRule.value" value="#(messageRule.value)"/>
					<p style="padding-top: 10px;"><span style="color:red">收到关键词</span>：填写文本关键词，必须填写，如：您好</p>
					<p><span style="color:red">未关注扫码</span>：填写参数二维码ID，可不填</p>
					<p><span style="color:red">已关注扫码</span>：填写参数二维码ID，可不填</p>
					<p><span style="color:red">点击自定义菜单</span>：填写自定义菜单中类型为“点击事件”的内容，必须填写</p>
				</div>
		</div>
		<div class="form-group">
			<div class="col-xs-8 col-xs-offset-3">
				<button type="submit" class="btn btn-primary">保存</button>
			</div>
		</div>
	</form>
</div>
#end
#define js()
<script src="#(res_path)/hplus/js/plugins/validate/jquery.validate.min.js"></script>
<script src="#(res_path)/hplus/js/plugins/validate/messages_zh.min.js"></script>
#end
#define jsFunction()
<script>
$(function(){
});
</script>
#end
